package com.samphanie.ane.admin.config;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import com.samphanie.ane.common.config.BaseSwaggerConfig;
import com.samphanie.ane.common.properties.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import springfox.bean.validators.configuration.BeanValidatorPluginsConfiguration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @Author ZSY
 * @createTime 2021/3/13 13:29
 *
 * Swagger API文档相关配置
 */
@Configuration
@EnableSwagger2
@EnableKnife4j
@Import(BeanValidatorPluginsConfiguration.class)
public class Swagger2Config extends BaseSwaggerConfig {
    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .title("ane-admin后台系统")
                .description("ane-admin后台相关接口文档")
                .contactName("ane-admin")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }
}
